package com.xy.blog.core.event;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationEvent;
import org.springframework.stereotype.Component;

/**
 * @author zanhonglei
 * @version V1.0
 * @Description:
 * @date 2020/3/14
 */
@Component
public class PlatformEvent {

    @Autowired
    private ApplicationContext applicationContext;

    public void publish(ApplicationEvent applicationEvent) {
        applicationContext.publishEvent(applicationEvent);
    }
}
